<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<button type="button" onclick="baidu()">点击去百度</button>
		<script type="text/javascript">
			function baidu(){
					location.href = "https://www.baidu.com";
				}
		</script>
	</body>
</html>
